package com.castle.fortress.admin.cms.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

import java.io.Serializable;
/**
 * cms栏目角色关联表 实体类
 *
 * @author castle
 * @since 2022-06-29
 */
@Data
@TableName("cms_role_channel")
public class CmsRoleChannelEntity implements Serializable {
	private static final long serialVersionUID = 1L;
	/**
	 * id
	*/
	@JsonSerialize(using = ToStringSerializer.class)
	@TableId(
			value = "id",
			type = IdType.ASSIGN_ID
	)
	private Long id;
	/**
	 * 系统角色id
	*/
	@JsonSerialize(using = ToStringSerializer.class)
	private Long roleId;
	/**
	 * cms栏目id
	*/
	@JsonSerialize(using = ToStringSerializer.class)
	private Long channelId;

}
